From: Florian Müllner Date: Sat, 15 Sep 2012 14:45:00 +0000 (+0200) Subject: grabHelper: Ungrab the entire stack on "outside clicks" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5826 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=809cbf58c6e396d4d5d34da840fcaed56ff01b3b;p=gnome-shell.git grabHelper: Ungrab the entire stack on "outside clicks" Currently clicks outside the grabbed actors are handled the same as the user pressing Escape - a single actor is popped from the grab stack. However according to the design, outside clicks should release all grabs. https://bugzilla.gnome.org/show_bug.cgi?id=682243 --- diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 6c7511fdf..9249828c6 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -330,7 +330,7 @@ const GrabHelper = new Lang.Class({ // which should be a release event. if (press) this._ignoreRelease = true; - this.ungrab(); + this.ungrab({ actor: this._grabStack[0].actor }); } return this._modalCount > 0;